home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8429 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 72 65 | 64 2e 77 65 65 67 2e 75 |Path: re|d.weeg.u|
|00000010| 69 6f 77 61 2e 65 64 75 | 21 72 6f 62 69 6e 73 6f |iowa.edu|!robinso|
|00000020| 6e 0a 46 72 6f 6d 3a 20 | 54 68 65 20 41 6d 6f 72 |n.From: |The Amor|
|00000030| 70 68 6f 75 73 20 4d 61 | 73 73 20 3c 72 6f 62 69 |phous Ma|ss <robi|
|00000040| 6e 73 6f 6e 40 62 6c 75 | 65 2e 77 65 65 67 2e 75 |nson@blu|e.weeg.u|
|00000050| 69 6f 77 61 2e 65 64 75 | 3e 0a 4e 65 77 73 67 72 |iowa.edu|>.Newsgr|
|00000060| 6f 75 70 73 3a 20 63 6f | 6d 70 2e 6c 61 6e 67 2e |oups: co|mp.lang.|
|00000070| 63 0a 53 75 62 6a 65 63 | 74 3a 20 52 65 3a 20 50 |c.Subjec|t: Re: P|
|00000080| 72 6f 67 72 61 6d 6d 69 | 6e 67 20 51 75 65 73 74 |rogrammi|ng Quest|
|00000090| 69 6f 6e 0a 44 61 74 65 | 3a 20 53 75 6e 2c 20 33 |ion.Date|: Sun, 3|
|000000a0| 20 4d 61 72 20 31 39 39 | 36 20 32 33 3a 34 37 3a | Mar 199|6 23:47:|
|000000b0| 31 34 20 2d 30 36 30 30 | 0a 4f 72 67 61 6e 69 7a |14 -0600|.Organiz|
|000000c0| 61 74 69 6f 6e 3a 20 55 | 6e 69 76 65 72 73 69 74 |ation: U|niversit|
|000000d0| 79 20 6f 66 20 49 6f 77 | 61 2c 20 49 6f 77 61 20 |y of Iow|a, Iowa |
|000000e0| 43 69 74 79 2c 20 49 41 | 2c 20 55 53 41 0a 44 69 |City, IA|, USA.Di|
|000000f0| 73 74 72 69 62 75 74 69 | 6f 6e 3a 20 77 6f 72 6c |stributi|on: worl|
|00000100| 64 0a 4d 65 73 73 61 67 | 65 2d 49 44 3a 20 3c 50 |d.Messag|e-ID: <P|
|00000110| 69 6e 65 2e 41 33 32 2e | 33 2e 39 31 2e 39 36 30 |ine.A32.|3.91.960|
|00000120| 33 30 33 32 33 34 32 35 | 34 2e 38 31 32 39 31 43 |30323425|4.81291C|
|00000130| 2d 31 30 30 30 30 30 40 | 72 65 64 2e 77 65 65 67 |-100000@|red.weeg|
|00000140| 2e 75 69 6f 77 61 2e 65 | 64 75 3e 0a 52 65 66 65 |.uiowa.e|du>.Refe|
|00000150| 72 65 6e 63 65 73 3a 20 | 3c 31 39 39 36 4d 61 72 |rences: |<1996Mar|
|00000160| 33 2e 31 36 34 37 35 34 | 2e 31 33 37 33 34 31 40 |3.164754|.137341@|
|00000170| 66 6f 72 65 73 74 3e 0a | 4e 4e 54 50 2d 50 6f 73 |forest>.|NNTP-Pos|
|00000180| 74 69 6e 67 2d 48 6f 73 | 74 3a 20 72 65 64 2e 77 |ting-Hos|t: red.w|
|00000190| 65 65 67 2e 75 69 6f 77 | 61 2e 65 64 75 0a 4d 69 |eeg.uiow|a.edu.Mi|
|000001a0| 6d 65 2d 56 65 72 73 69 | 6f 6e 3a 20 31 2e 30 0a |me-Versi|on: 1.0.|
|000001b0| 43 6f 6e 74 65 6e 74 2d | 54 79 70 65 3a 20 54 45 |Content-|Type: TE|
|000001c0| 58 54 2f 50 4c 41 49 4e | 3b 20 63 68 61 72 73 65 |XT/PLAIN|; charse|
|000001d0| 74 3d 55 53 2d 41 53 43 | 49 49 0a 58 2d 53 65 6e |t=US-ASC|II.X-Sen|
|000001e0| 64 65 72 3a 20 72 6f 62 | 69 6e 73 6f 6e 40 72 65 |der: rob|inson@re|
|000001f0| 64 2e 77 65 65 67 2e 75 | 69 6f 77 61 2e 65 64 75 |d.weeg.u|iowa.edu|
|00000200| 0a 49 6e 2d 52 65 70 6c | 79 2d 54 6f 3a 20 3c 31 |.In-Repl|y-To: <1|
|00000210| 39 39 36 4d 61 72 33 2e | 31 36 34 37 35 34 2e 31 |996Mar3.|164754.1|
|00000220| 33 37 33 34 31 40 66 6f | 72 65 73 74 3e 20 0a 0a |37341@fo|rest> ..|
|00000230| 4f 6e 20 33 20 4d 61 72 | 20 31 39 39 36 20 65 62 |On 3 Mar| 1996 eb|
|00000240| 72 6f 6d 62 65 72 40 66 | 6f 72 65 73 74 2e 64 72 |romber@f|orest.dr|
|00000250| 65 77 2e 65 64 75 20 77 | 72 6f 74 65 3a 0a 0a 3e |ew.edu w|rote:..>|
|00000260| 20 42 65 6c 6f 77 20 69 | 73 20 70 61 72 74 20 6f | Below i|s part o|
|00000270| 66 20 74 68 65 20 63 6f | 64 65 20 66 6f 72 20 61 |f the co|de for a|
|00000280| 20 70 61 73 73 77 6f 72 | 64 20 70 72 6f 67 72 61 | passwor|d progra|
|00000290| 6d 20 77 68 69 63 68 20 | 49 20 77 72 6f 74 65 2e |m which |I wrote.|
|000002a0| 20 48 6f 77 65 76 65 72 | 2c 20 0a 3e 20 77 68 65 | However|, .> whe|
|000002b0| 6e 65 76 65 20 49 20 72 | 75 6e 20 74 68 65 20 70 |neve I r|un the p|
|000002c0| 72 6f 67 72 61 6d 2c 20 | 74 68 65 20 22 45 4e 54 |rogram, |the "ENT|
|000002d0| 45 52 20 50 41 53 53 57 | 4f 52 44 20 48 45 52 45 |ER PASSW|ORD HERE|
|000002e0| 22 20 6f 6e 6c 79 20 61 | 70 70 65 61 72 73 20 61 |" only a|ppears a|
|000002f0| 66 74 65 72 20 61 20 0a | 3e 20 63 61 72 72 69 61 |fter a .|> carria|
|00000300| 67 65 20 72 65 74 75 72 | 6e 20 69 73 20 65 6e 74 |ge retur|n is ent|
|00000310| 65 72 65 64 2e 0a 0a 3e | 20 09 69 6e 74 20 70 61 |ered...>| .int pa|
|00000320| 73 73 5b 31 30 30 5d 3b | 0a 3e 20 09 69 6e 74 20 |ss[100];|.> .int |
|00000330| 63 6f 75 6e 74 3d 30 3b | 0a 3e 20 09 63 68 61 72 |count=0;|.> .char|
|00000340| 20 63 68 3b 0a 3e 20 09 | 70 72 69 6e 74 66 28 22 | ch;.> .|printf("|
|00000350| 45 4e 54 45 52 20 50 41 | 53 53 57 4f 52 44 20 48 |ENTER PA|SSWORD H|
|00000360| 45 52 45 3a 20 22 29 3b | 0a 0a 09 66 66 6c 75 73 |ERE: ");|...fflus|
|00000370| 68 28 73 74 64 6f 75 74 | 29 3b 20 20 2f 2a 20 66 |h(stdout|); /* f|
|00000380| 6c 75 73 68 20 6f 75 74 | 70 75 74 20 62 75 66 66 |lush out|put buff|
|00000390| 65 72 20 28 74 6f 20 73 | 63 72 65 65 6e 20 69 6e |er (to s|creen in|
|000003a0| 20 79 6f 75 72 20 63 61 | 73 65 29 20 2a 2f 0a 0a | your ca|se) */..|
|000003b0| 3e 20 09 77 68 69 6c 65 | 20 28 63 68 3d 67 65 74 |> .while| (ch=get|
|000003c0| 63 68 28 29 20 21 3d 27 | 5c 6e 27 29 0a 3e 20 09 |ch() !='|\n').> .|
|000003d0| 7b 20 70 61 73 73 5b 63 | 6f 75 6e 74 5d 3d 63 68 |{ pass[c|ount]=ch|
|000003e0| 3b 0a 3e 20 09 20 20 70 | 75 74 63 68 28 27 2a 27 |;.> . p|utch('*'|
|000003f0| 29 3b 0a 3e 20 09 20 20 | 63 6f 75 6e 74 2b 2b 3b |);.> . |count++;|
|00000400| 0a 3e 20 09 7d 09 0a 0a | 20 20 50 75 74 74 69 6e |.> .}...| Puttin|
|00000410| 67 20 61 20 27 5c 6e 27 | 20 61 74 20 74 68 65 20 |g a '\n'| at the |
|00000420| 65 6e 64 20 6f 66 20 74 | 68 65 20 70 72 69 6e 74 |end of t|he print|
|00000430| 66 28 29 27 64 20 73 74 | 72 69 6e 67 20 6e 6f 72 |f()'d st|ring nor|
|00000440| 6d 61 6c 6c 79 20 66 6c | 75 73 68 65 73 20 74 68 |mally fl|ushes th|
|00000450| 65 20 0a 62 75 66 66 65 | 72 20 66 6f 72 20 79 6f |e .buffe|r for yo|
|00000460| 75 20 28 65 78 63 65 70 | 74 20 6f 6e 20 73 6f 6d |u (excep|t on som|
|00000470| 65 20 62 69 7a 61 72 72 | 65 20 73 79 73 74 65 6d |e bizarr|e system|
|00000480| 73 20 64 65 74 61 69 6c | 65 64 20 69 6e 20 74 68 |s detail|ed in th|
|00000490| 65 20 53 74 61 6e 64 61 | 72 64 20 0a 3a 2d 29 2e |e Standa|rd .:-).|
|000004a0| 20 20 53 69 6e 63 65 20 | 74 68 65 20 73 74 72 69 | Since |the stri|
|000004b0| 6e 67 20 79 6f 75 27 72 | 65 20 70 61 73 73 69 6e |ng you'r|e passin|
|000004c0| 67 20 74 6f 20 70 72 69 | 6e 74 66 28 29 20 69 73 |g to pri|ntf() is|
|000004d0| 6e 27 74 20 6e 65 77 6c | 69 6e 65 2d 20 0a 74 65 |n't newl|ine- .te|
|000004e0| 72 6d 69 6e 61 74 65 64 | 20 79 6f 75 20 68 61 76 |rminated| you hav|
|000004f0| 65 20 74 6f 20 65 78 70 | 6c 69 63 69 74 6c 79 20 |e to exp|licitly |
|00000500| 66 66 6c 75 73 68 28 73 | 74 64 6f 75 74 29 2e 0a |fflush(s|tdout)..|
|00000510| 0a 20 2d 2d 4a 61 6d 65 | 73 20 52 6f 62 69 6e 73 |. --Jame|s Robins|
|00000520| 6f 6e 20 28 72 6f 62 69 | 6e 73 6f 6e 40 63 73 2e |on (robi|nson@cs.|
|00000530| 75 69 6f 77 61 2e 65 64 | 75 20 2d 6f 72 2d 20 6a |uiowa.ed|u -or- j|
|00000540| 61 6d 65 73 2d 72 6f 62 | 69 6e 73 6f 6e 40 75 69 |ames-rob|inson@ui|
|00000550| 6f 77 61 2e 65 64 75 29 | 0a 2f 2a 20 20 20 49 6e |owa.edu)|./* In|
|00000560| 64 65 65 64 2c 20 43 2b | 2b 20 69 73 20 61 20 62 |deed, C+|+ is a b|
|00000570| 69 74 20 6f 66 20 61 6e | 20 6f 64 64 62 61 6c 6c |it of an| oddball|
|00000580| 20 6f 66 20 61 20 6c 61 | 6e 67 75 61 67 65 20 2e | of a la|nguage .|
|00000590| 2e 2e 20 67 69 76 65 6e | 20 74 68 65 20 77 61 79 |.. given| the way|
|000005a0| 20 74 68 61 74 20 2a 0a | 20 2a 20 69 74 20 72 65 | that *.| * it re|
|000005b0| 71 75 69 72 65 73 20 70 | 72 69 76 61 74 65 20 70 |quires p|rivate p|
|000005c0| 61 72 74 73 20 74 6f 20 | 62 65 20 76 69 73 69 62 |arts to |be visib|
|000005d0| 6c 65 2e 20 20 54 68 69 | 73 20 69 6e 63 72 65 61 |le. Thi|s increa|
|000005e0| 73 65 73 20 74 68 65 20 | 73 74 72 65 6e 67 74 68 |ses the |strength|
|000005f0| 20 6f 66 20 20 2a 0a 20 | 2a 20 63 6f 75 70 6c 69 | of *. |* coupli|
|00000600| 6e 67 20 64 72 61 6d 61 | 74 69 63 61 6c 6c 79 2e |ng drama|tically.|
|00000610| 2e 2e 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00000620| 20 20 20 20 20 20 20 20 | 20 2d 2d 20 44 72 2e 20 | | -- Dr. |
|00000630| 52 69 63 68 20 41 72 74 | 79 6d 20 20 20 20 20 20 |Rich Art|ym |
|00000640| 20 20 20 20 2a 2f 0a | | */. | |
+--------+-------------------------+-------------------------+--------+--------+